dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2d6c2d
)
Add ResultSet::rewind()
author
Domas Mituzas
<midom@users.mediawiki.org>
Thu, 15 Feb 2007 15:38:28 +0000
(15:38 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Thu, 15 Feb 2007 15:38:28 +0000
(15:38 +0000)
includes/Database.php
patch
|
blob
|
history
diff --git
a/includes/Database.php
b/includes/Database.php
index
5ad073d
..
d295580
100644
(file)
--- a/
includes/Database.php
+++ b/
includes/Database.php
@@
-2116,6
+2116,12
@@
class ResultWrapper {
function seek( $row ) {
$this->db->dataSeek( $this->result, $row );
}
+
+ function rewind() {
+ if ($this->numRows()) {
+ $this->db->dataSeek($this->result, 0);
+ }
+ }
}